﻿<?php
  //Access
  @date_default_timezone_set('Asia/Taipei');
  $conf["base_path"] = dirname(__FILE__)."/../";
  $conf["base_ipurl"] = "http://" .$_SERVER['HTTP_HOST']."/";

  $conf["Host"] = "localhost";                //設置數據庫的地址(用IP),如果數據庫在本機上，用默认
  //$conf["User"] = "qungenet";                     //設置數據庫用戶名
  //$conf["Password"] = "FaH69**z";               //設置數據庫密碼
  $conf["User"] = "root";                     //設置數據庫用戶名
  $conf["Password"] = "qwer123`";               //設置數據庫密碼
  $conf["Database"] = "qg_fhome";                //數據庫表名
  $conf["tbl_prefix"] = "fh_";               //數據庫名前綴(不用修改)

  $_SESSION['fctfile'] ="/siteadmin/userfiles/" ;//fck上傳路徑,如是網站為根目錄,用默認,否則在其前面加文件夾名稱

  $conf['fck_browurl'] = $conf['base_path'] . "/upload/image";
  $conf['fck_browser'] = $conf['base_path'] . "upload/";
  $conf['fck_upload'] = $conf['base_path'] . "upload/";


  //连接数据库
  $con = mysql_connect($conf['Host'], $conf['User'], $conf['Password']);
  mysql_select_db($conf["Database"], $con) or die(mysql_error());
  mysql_query("set names 'utf8'");
?>